package br.ucb.sispro.view.control;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

import br.ucb.sispro.control.MessagesControl;

public class MessagesWeb extends MessagesControl{

	public MessagesWeb() { 
		super(); 
	}
	
	
	@Override
	public void addMessage(String message) {
		FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_WARN, "Erro", getMessage(message)); 
		FacesContext.getCurrentInstance().addMessage(null, msg);
	}
}
